import request from '@/utils/request'

export const getArticleList = (params) => {
  return request.get('/admin/interview/query', {
    params
  })
}

export const addArticleList = (data) => {
  return request({
    method: 'POST',
    url: '/admin/interview/create',
    data
  })
}

export const delArticleList = (id) => {
  return request({
    method: 'DELETE',
    url: '/admin/interview/remove',
    data: { id }
  })
}

export const changeArticleList = (data) => {
  return request({
    method: 'PUT',
    url: '/admin/interview/update',
    data
  })
}

export const gainArticleList = (id) => {
  return request({
    url: '/admin/interview/show',
    params: {
      id
    }
  })
}
